
console.log(location.search);
// var id = parseInt(options.body.split("=")[1])//获取传递的id
function getId() {
    var id = parseInt(location.search.split("=")[1])//获取传递的id
    console.log("id",id);
  choice(id);
}
getId();
function choice(e) {
    request("http://www.bai.com/lector_detail",e);
}
function request(e,b){
    console.log(e);
    $post(e,'',datafn);
//月嫂列表处理函数
    function datafn(data){
        if(data.code == 200){
            // console.log(data.data);
            var dataa=data.data[b];
            $("#imgc").attr("src",dataa.imgc);
            $("#name").html(dataa.name);
            $("#nameEn").html(dataa.nameEn);
            var html='';
            for(var i in dataa.honor){
                html+="<span>"+dataa.honor[i]+"</span>"
            }
            $("#honor").html(html);
            var htmlb='';
            for(var j in dataa.info){
                htmlb+="<li>"+dataa.info[j]+"</li>"
            }
            $("#info").html(htmlb);
        }
    };
}